var app = angular.module('myApp', ['ngRoute', 'ui.bootstrap', 'angularFileUpload'])
app.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
        .when('/login', {
            templateUrl: 'login.html',
            controller: 'loginCtrl'
        })
        .when('/register', {
            templateUrl: 'register.html',
            controller: 'FormCtrl'
        })
        .otherwise({
            redirectTo: '/login'
        });
}]);

module.exports = app;